import React from "react";
import {
  Text,
  TouchableOpacity,
  StyleProp,
  ViewStyle,
  TextStyle,
} from "react-native";
import { Ionicons } from "@expo/vector-icons";

interface TempChatButtonProps {
  onPress?: () => void;
  style: StyleProp<ViewStyle>;
  textStyle: StyleProp<TextStyle>;
  iconColor: string;
}

const TempChatButton: React.FC<TempChatButtonProps> = ({
  onPress,
  style,
  textStyle,
  iconColor,
}) => {
  return (
    <TouchableOpacity style={style} onPress={onPress}>
      <Ionicons
        name="chatbubble-ellipses-outline"
        size={20}
        color={iconColor}
      />
      <Text style={textStyle}>发起临时私聊</Text>
    </TouchableOpacity>
  );
};

export default TempChatButton;
